package com.ford.trade.service.impl;

import com.ford.trade.entity.BeiDan500PeiLv;
import com.ford.trade.repository.BeiDan500PeilvRepository;
import com.ford.trade.service.BeiDan500PeilvService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: ford
 * @date: 2022/9/12 14:55
 */
@Service
public class BeiDan500PeilvServiceImpl implements BeiDan500PeilvService {

    @Resource
    private BeiDan500PeilvRepository beiDan500PeilvRepository;

    @Override
    public void save(BeiDan500PeiLv peiLv0) {
        beiDan500PeilvRepository.save(peiLv0);

    }

    @Override
    public List<BeiDan500PeiLv> findByIndexId(Long indexId) {

        return beiDan500PeilvRepository.findAllByIndexId(indexId);
    }
}
